﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace Jermaine.Serialization
{
    /// <summary>
    /// Jermaine
    /// AbstractSerializer
    /// </summary>
    public abstract class AbstractSerializer
    {
        protected void PathExists(String path) {
            if (!File.Exists(path)) {
                throw new ArgumentException("path");
            }
        }

        protected void IsNull(Object o) {
            if (o == null) {
                throw new ArgumentNullException("o");
            }
        }
    }
}
